// pages/test/index.js
Page({
    data: {
        msg:"Hello miniprograme",
        stu:[
            {name:'张三丰1',score:100,skill:['太极','闭关']},
            {name:'张三丰2',score:101,skill:['太极1','闭关1']},
            {name:'张三丰3',score:102,skill:['太极2','闭关2']},
        ],
        isShow:false,
        isActive:true
    },
    onLoad: function (options) {
       
    },
    handleShow(){
        console.log(1111);
        // this  指向page页面对象
        let bool = this.data.isShow  //提取原来的数据
        this.setData({ //是唯一触发数据响应式变化的方法
            isShow:!bool
        })
    },
    handleBg(){
        this.setData({
            isActive:!this.data.isActive
        })
    }

})